#ifndef _IUCOMMANDPING_HPP_
#define _IUCOMMANDPING_HPP_

#include "iuCommand.hpp"
#include <pthread.h>
#include "iuPacketICMP.hpp"
#include "iuPacketIP.hpp"

/**
 * @brief Implementation de la commande Ping
 */
class iuCommandPing : public iuCommand
{
public:
   virtual const char *getName() const;
   virtual void execute(int numArgs, char **args, iuApplication &app);
   void sendRequests();

private:
   pthread_t m_thread;
   iuApplication *m_app;
   iuPacketIP m_requestIP;
   iuPacketICMP m_requestICMP;
   int m_count;
};

#endif
